package com.yinhe.music.yhmusic.login.password;

import com.yinhe.music.yhmusic.base.IBaseView;
import com.yinhe.music.yhmusic.model.LoginInfo;

/**
 * PassWordActivity 契约类
 */
public interface PasswordContract {

    interface IPassWordPresenter {

        /**
         * 设置密码
         *
         * @param type      register/password 注册/重设密码
         * @param phone     账号
         * @param validCode 验证码
         * @param password  密码
         */
        void setPassWord(String type, String phone, String validCode, String password);
    }

    interface IPassWordView extends IBaseView {
        /**
         * 设置密码成功UI
         *
         * @param loginInfo 登陆信息
         */
        void setPassWordUI(LoginInfo loginInfo);
    }
}
